import { createStore } from "vuex";
import mutations from "./mutations";
export default createStore({
  state: {
    cartList: [],//购物车数据
    isDelete: true,//确定header组件，点击编辑的时候展示底部组件
    edit: true,//默认编辑状态
    orderList: [],
    userAddress: [
      {
        id: 1001,
        name: 'Cyan',
        tel: '16815712582',
        province: '江西省',
        city: '萍乡市',
        county: '安源区',
        addressDetail: '萍水相逢',
        isDefault: true,
        areaCode: '337000'
      },
      {
        id: 1002,
        name: 'Yyan',
        tel: '15979912582',
        province: '江西省',
        city: '萍乡市',
        county: '上栗县',
        addressDetail: '上栗烟花',
        isDefault: false,
        areaCode: '337300'
      },
    ],
    orderListEnd: []
  },
  mutations,
  actions: {}
}) 